package com.xique.park.controller.client.web.api;

import com.alibaba.fastjson.JSONObject;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.Map;

/**
 * @author: caogq
 * @Date: 2021/8/9 17:17
 * @Description:
 */
@RetrofitClient(baseUrl = "${command.clientUrl}")
public interface IClientPassApi {

    @POST("gateway")
    JSONObject pass(@Body Map<String, Object> map);

    @GET("space")
    JSONObject space(@Query("parkId") Long parkId);

    @POST("plate/edit")
    JSONObject editPlate(@Body Map<String, Object> map);

    @POST("confirmIn")
    JSONObject confirmIn(@Body Map<String, Object> map);
}
